//
//  UserInfo.swift
//  Mixer
//
//  Created by MacPro on 2017/5/24.
//  Copyright © 2017年 Razeware LLC. All rights reserved.
//

import UIKit
import React

@objc(UserInfo)
class UserInfo: RCTEventEmitter {

    
    override func supportedEvents() -> [String]! {
        return ["TokenInfo"]
    }
   
//    @objc func dismissPresentedViewController(_ reactTag: NSNumber) {
//        DispatchQueue.main.async {
//            if let view = self.bridge.uiManager.view(forReactTag: reactTag) {
//                let presentedViewController: UIViewController! = view.reactViewController()
//                presentedViewController.dismiss(animated: true, completion: nil)
//            }
//        }
//    }
    
    @objc func getValue() -> Void {
        self.sendEvent(withName: "TokenInfo", body: ["token" : "hahahahah"])
    }
//    func getCenterIdAndAuthToken(token: String, centerId:String) -> Void {
//         print(token)
//         print(centerId)
//        self.sendEvent(withName: "TokenInfo", body: ["token" : token, "centerId":centerId])
//    }
}
